﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuantitativeInvestment.Bean;
namespace QuantitativeInvestment.Factor
{
    class AmountFactor:Factor
    {
        public AmountFactor()
        {
            this.name = "成交金额";
        }

        public override void addFactorValue(Stock stock)
        {

            if (!stock.factors.ContainsKey(this.name))
            {
                stock.factors.Add(this.name, this.dataModel.getStockAmountList(stock.startDate, stock.endDate, stock.code));
            }
        }
    }
}
